<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>value::value</title>
<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../index.html" title="Chapter 1. Boost.JSON">
<link rel="up" href="../boost__json__value.html" title="value">
<link rel="prev" href="_value.html" title="value::~value">
<link rel="next" href="value/overload1.html" title="value::value (1 of 35 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
<td align="center"><a href="../../../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="_value.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost__json__value.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="value/overload1.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h5 class="title">
<a name="json.ref.boost__json__value.value"></a><a class="link" href="value.html" title="value::value">value::value</a>
</h5></div></div></div>
<p>
          <a class="indexterm" name="idm45725625762176"></a>
        </p>
<p>
          Default constructor.
        </p>
<pre class="programlisting"><a class="link" href="value/overload1.html" title="value::value (1 of 35 overloads)">value</a><span class="special">();</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload1.html" title="value::value (1 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>
</pre>
<p>
          Constructor.
        </p>
<pre class="programlisting"><span class="keyword">explicit</span>
<a class="link" href="value/overload2.html" title="value::value (2 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload2.html" title="value::value (2 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>
</pre>
<p>
          Pilfer constructor.
        </p>
<pre class="programlisting"><a class="link" href="value/overload3.html" title="value::value (3 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">pilfered</span><span class="special">&lt;</span> <span class="identifier">value</span> <span class="special">&gt;</span> <span class="identifier">other</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload3.html" title="value::value (3 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>
</pre>
<p>
          Copy constructor.
        </p>
<pre class="programlisting"><a class="link" href="value/overload4.html" title="value::value (4 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">value</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload4.html" title="value::value (4 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload5.html" title="value::value (5 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">value</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload5.html" title="value::value (5 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>
</pre>
<p>
          Move constructor.
        </p>
<pre class="programlisting"><a class="link" href="value/overload6.html" title="value::value (6 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">value</span><span class="special">&amp;&amp;</span> <span class="identifier">other</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload6.html" title="value::value (6 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload7.html" title="value::value (7 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">value</span><span class="special">&amp;&amp;</span> <span class="identifier">other</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload7.html" title="value::value (7 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>
</pre>
<p>
          Construct a null.
        </p>
<pre class="programlisting"><a class="link" href="value/overload8.html" title="value::value (8 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">std</span><span class="special">::</span><span class="identifier">nullptr_t</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span> <span class="special">=</span> <span class="special">{});</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload8.html" title="value::value (8 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>
</pre>
<p>
          Construct a bool.
        </p>
<pre class="programlisting"><a class="link" href="value/overload9.html" title="value::value (9 of 35 overloads)">value</a><span class="special">(</span>
    <span class="keyword">bool</span> <span class="identifier">b</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span> <span class="special">=</span> <span class="special">{});</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload9.html" title="value::value (9 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>
</pre>
<p>
          Construct a <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">int64_t</span></code>.
        </p>
<pre class="programlisting"><a class="link" href="value/overload10.html" title="value::value (10 of 35 overloads)">value</a><span class="special">(</span>
    <span class="keyword">signed</span> <span class="keyword">char</span> <span class="identifier">i</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span> <span class="special">=</span> <span class="special">{});</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload10.html" title="value::value (10 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload11.html" title="value::value (11 of 35 overloads)">value</a><span class="special">(</span>
    <span class="keyword">short</span> <span class="identifier">i</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span> <span class="special">=</span> <span class="special">{});</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload11.html" title="value::value (11 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload12.html" title="value::value (12 of 35 overloads)">value</a><span class="special">(</span>
    <span class="keyword">int</span> <span class="identifier">i</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span> <span class="special">=</span> <span class="special">{});</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload12.html" title="value::value (12 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload13.html" title="value::value (13 of 35 overloads)">value</a><span class="special">(</span>
    <span class="keyword">long</span> <span class="identifier">i</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span> <span class="special">=</span> <span class="special">{});</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload13.html" title="value::value (13 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload14.html" title="value::value (14 of 35 overloads)">value</a><span class="special">(</span>
    <span class="keyword">long</span> <span class="keyword">long</span> <span class="identifier">i</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span> <span class="special">=</span> <span class="special">{});</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload14.html" title="value::value (14 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>
</pre>
<p>
          Construct a <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">uint64_t</span></code>.
        </p>
<pre class="programlisting"><a class="link" href="value/overload15.html" title="value::value (15 of 35 overloads)">value</a><span class="special">(</span>
    <span class="keyword">unsigned</span> <span class="keyword">char</span> <span class="identifier">u</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span> <span class="special">=</span> <span class="special">{});</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload15.html" title="value::value (15 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload16.html" title="value::value (16 of 35 overloads)">value</a><span class="special">(</span>
    <span class="keyword">unsigned</span> <span class="keyword">short</span> <span class="identifier">u</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span> <span class="special">=</span> <span class="special">{});</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload16.html" title="value::value (16 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload17.html" title="value::value (17 of 35 overloads)">value</a><span class="special">(</span>
    <span class="keyword">unsigned</span> <span class="keyword">int</span> <span class="identifier">u</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span> <span class="special">=</span> <span class="special">{});</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload17.html" title="value::value (17 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload18.html" title="value::value (18 of 35 overloads)">value</a><span class="special">(</span>
    <span class="keyword">unsigned</span> <span class="keyword">long</span> <span class="identifier">u</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span> <span class="special">=</span> <span class="special">{});</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload18.html" title="value::value (18 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload19.html" title="value::value (19 of 35 overloads)">value</a><span class="special">(</span>
    <span class="keyword">unsigned</span> <span class="keyword">long</span> <span class="keyword">long</span> <span class="identifier">u</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span> <span class="special">=</span> <span class="special">{});</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload19.html" title="value::value (19 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>
</pre>
<p>
          Construct a <code class="computeroutput"><span class="keyword">double</span></code>.
        </p>
<pre class="programlisting"><a class="link" href="value/overload20.html" title="value::value (20 of 35 overloads)">value</a><span class="special">(</span>
    <span class="keyword">double</span> <span class="identifier">d</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span> <span class="special">=</span> <span class="special">{});</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload20.html" title="value::value (20 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>
</pre>
<p>
          Construct a <a class="link" href="../boost__json__string.html" title="string"><code class="computeroutput"><span class="identifier">string</span></code></a>.
        </p>
<pre class="programlisting"><a class="link" href="value/overload21.html" title="value::value (21 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">string_view</span> <span class="identifier">s</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span> <span class="special">=</span> <span class="special">{});</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload21.html" title="value::value (21 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload22.html" title="value::value (22 of 35 overloads)">value</a><span class="special">(</span>
    <span class="keyword">char</span> <span class="keyword">const</span><span class="special">*</span> <span class="identifier">s</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span> <span class="special">=</span> <span class="special">{});</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload22.html" title="value::value (22 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload23.html" title="value::value (23 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">string</span> <span class="identifier">other</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload23.html" title="value::value (23 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload24.html" title="value::value (24 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">string</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload24.html" title="value::value (24 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload25.html" title="value::value (25 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">string</span><span class="special">&amp;&amp;</span> <span class="identifier">other</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload25.html" title="value::value (25 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload26.html" title="value::value (26 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">string_kind_t</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span> <span class="special">=</span> <span class="special">{});</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload26.html" title="value::value (26 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>
</pre>
<p>
          Construct an <a class="link" href="../boost__json__array.html" title="array"><code class="computeroutput"><span class="identifier">array</span></code></a>.
        </p>
<pre class="programlisting"><a class="link" href="value/overload27.html" title="value::value (27 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">array</span> <span class="identifier">other</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload27.html" title="value::value (27 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload28.html" title="value::value (28 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">array</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload28.html" title="value::value (28 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload29.html" title="value::value (29 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">array</span><span class="special">&amp;&amp;</span> <span class="identifier">other</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload29.html" title="value::value (29 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload30.html" title="value::value (30 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">array_kind_t</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span> <span class="special">=</span> <span class="special">{});</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload30.html" title="value::value (30 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>
</pre>
<p>
          Construct an <a class="link" href="../boost__json__object.html" title="object"><code class="computeroutput"><span class="identifier">object</span></code></a>.
        </p>
<pre class="programlisting"><a class="link" href="value/overload31.html" title="value::value (31 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">object</span> <span class="identifier">other</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload31.html" title="value::value (31 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload32.html" title="value::value (32 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">object</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload32.html" title="value::value (32 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload33.html" title="value::value (33 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">object</span><span class="special">&amp;&amp;</span> <span class="identifier">other</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload33.html" title="value::value (33 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>

<a class="link" href="value/overload34.html" title="value::value (34 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">object_kind_t</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span> <span class="special">=</span> <span class="special">{});</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload34.html" title="value::value (34 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>
</pre>
<p>
          Construct from an initializer-list.
        </p>
<pre class="programlisting"><a class="link" href="value/overload35.html" title="value::value (35 of 35 overloads)">value</a><span class="special">(</span>
    <span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">value_ref</span> <span class="special">&gt;</span> <span class="identifier">init</span><span class="special">,</span>
    <span class="identifier">storage_ptr</span> <span class="identifier">sp</span> <span class="special">=</span> <span class="special">{});</span>
  <span class="emphasis"><em>» <a class="link" href="value/overload35.html" title="value::value (35 of 35 overloads)"><code class="computeroutput"><span class="identifier">more</span><span class="special">...</span></code></a></em></span>
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2019, 2020 Vinnie Falco<br>Copyright © 2020 Krystian Stasiowski<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="_value.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost__json__value.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="value/overload1.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
